package cn.cdeden.knowledge.service;

import cn.cdeden.knowledge.domain.SysSchedule;
import cn.cdeden.knowledge.domain.SysSchedulePermissions;
import cn.cdeden.knowledge.domain.dto.SysSchedulePermissionsDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysSchedulePermissionsService extends IService<SysSchedulePermissions>{
    List<SysSchedulePermissionsDto> getAllPermissions();


    /**
     *
     * 查询某个具体人员有创建日程权限的日历数据
     * @param userId
     * @return
     */
    List<SysSchedule> checkPermissions(Long userId);

    /**
     * 判断某个日历中某个人是否有相应的权限
     * @param scheduleId
     * @param userId
     * @param detailsName
     * @return
     */
    Boolean checkPermissionsById(Long scheduleId, Long userId, String detailsName);
}
